//
//  DoubanAPI.swift
//  test-ios
//
//  Created by wyz5204 on 2023/4/24.
//

import Foundation
import Moya

enum DoubanAPI {
    case channels
}

extension DoubanAPI : TargetType{
    
    var baseURL: URL {
        return URL(string : "https://www.douban.com/")!
    }
    
    var path: String {
        return "j/app/radio/channels"
    }
    
    var method: Moya.Method {
        return .get
    }
    
    var task: Task {
        return .requestParameters(parameters: [:], encoding: URLEncoding.queryString)
    }
    
    var headers: [String : String]? {
        return [:]
    }
    
    
}
